<?php

namespace app\api\validation;

class UserBankCard extends \think\Validate
{
    protected $rule = [
        'name' => 'require',
        'idcard' => 'require',
        'number' => 'require',
        'bank_name' => 'require',
        'mobile' => 'require',
    ];

    protected $message = [
        'name.require' => '姓名不能为空',
        'idcard.require' => '身份证号不能为空',
        'number.require' => '卡号不能为空',
        'bank_name.require' => '开户行不能为空',
        'mobile.require' => '手机号不能为空',
    ];
}